package com.baizw.cultivation.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.context.annotation.Description;

/**
 * Result枚举
 *
 * @author 剧终1204
 * @version V1.0
 * @date 2020年05月22日 10:31:26
 */
@Getter
@AllArgsConstructor
@Description("Result枚举")
public enum ResultEnum {
    USER_NOT_FOUND(400, "用户不存在"),
    USER_LOCKED(400, "用户已锁定"),
    SUCCESS(0, "成功"),
    ERROR(1, "失败"),
    IO_OPEN_ERROR(500, "IO打开异常"),
    BAD_REQUEST(401, "错误的请求");

    private final Integer code;
    private final String msg;
}
